package com.zhonghan.recharge.service;
import java.util.List;

import com.zhonghan.common.bean.Result;
import com.zhonghan.common.bean.ZhCardOrder;
import com.zhonghan.recharge.pojo.ZhGascardOrder;
public interface ZhGascardOrderService{
	
	/**
	 * 保存订单
	 * @param gasNumber
	 * @param gasName
	 * @param gasPhone
	 * @param gasType
	 * @param reCardNo
	 * @param password
	 * @param bmItem
	 * @return
	 */
	/*public ZhGascardOrder saveOrder(String gasNumber, String gasName, String gasPhone, String gasType, String reCardNo,
			Integer facePrice);*/
	/**
	 * 获得ZhGascardOrder数据的总行数
	 * @return
	 */
    long getZhGascardOrderRowCount();
	/**
	 * 获得ZhGascardOrder数据集合
	 * @return
	 */
    List<ZhGascardOrder> selectZhGascardOrder();
	/**
	 * 获得一个ZhGascardOrder对象,以参数ZhGascardOrder对象中不为空的属性作为条件进行查询
	 * @param obj
	 * @return
	 */
    List<ZhGascardOrder> selectZhGascardOrderByObj(ZhGascardOrder obj);
    /**
     * 通过条件查询数据总数
     * @param obj
     * @return
     */
    long getZhGascardOrderRowCountByObj(ZhGascardOrder obj);
	/**
	 * 通过ZhGascardOrder的id获得ZhGascardOrder对象
	 * @param id
	 * @return
	 */
    ZhGascardOrder selectZhGascardOrderById(Integer id);
	/**
	 * 插入ZhGascardOrder到数据库,包括null值
	 * @param value
	 * @return
	 */
    int insertZhGascardOrder(ZhGascardOrder value);
	/**
	 * 插入ZhGascardOrder中属性值不为null的数据到数据库
	 * @param value
	 * @return
	 */
    int insertNonEmptyZhGascardOrder(ZhGascardOrder value);
	/**
	 * 批量插入ZhGascardOrder到数据库
	 * @param value
	 * @return
	 */
    int insertZhGascardOrderByBatch(List<ZhGascardOrder> value);
	/**
	 * 通过ZhGascardOrder的id删除ZhGascardOrder
	 * @param id
	 * @return
	 */
    int deleteZhGascardOrderById(Integer id);
	/**
	 * 通过ZhGascardOrder的id更新ZhGascardOrder中的数据,包括null值
	 * @param enti
	 * @return
	 */
    int updateZhGascardOrderById(ZhGascardOrder enti);
	/**
	 * 通过ZhGascardOrder的id更新ZhGascardOrder中属性不为null的数据
	 * @param enti
	 * @return
	 */
    int updateNonEmptyZhGascardOrderById(ZhGascardOrder enti);
    
    /**
     * 查询订单
     * @param order
     * @return
     */
    public Result selectZhGascardOrderByCondition(String orderNo,String gascardNo,
			String telephone,String fillCardSequence,String rechargeState,String beginTime,String endTime,
			String orderType, Integer pageNum,Integer pageSize);
    /**
     * 斑马回调更新订单状态
     * @param orderNo
     * @param rechargeState
     */
    public void updateRechargeStateByOrderNoByCallBack(String orderNo,String rechargeState,String operateTime)  throws Exception;
    
    /**
     * api 查询订单详情 
     * @param orderNo
     * @return
     */
    public ZhCardOrder selectOrderToApiByOrderNo(String orderNo);
    
    /**
     * 查询订单详情
     * @param orderNo
     * @return
     */
	Result getOrderDetail(String orderNo);
	
	/**
	 * 根据订单号查询订单
	 * @param orderNo
	 * @return
	 */
	ZhGascardOrder selectZhGascardOrderByOrderNo(String orderNo);
}